export const formatNum = (num: number) => {
  if (Number.isNaN(num)) return '0'
  if (num < 10000) {
    return num.toString()
  } else {
    return (num / 10000).toFixed(1) + 'w'
  }
}
